<?php
class demoModel extends model {
	
	public function __construct(){
		parent::__construct('ips_dict');
	}
	
	public function findPage($page, $condition, $field=null){
		return parent::findPage($page, $condition, $field);
	}
	
	public function add($rec){
		return parent::insert($rec);
	}
	
	public function get($id, $field='*'){
		$id = (int) $id;		
		return parent::findUnique(array('id'=>$id),null,$field);
	}
	
	
	
}
